package com.web.game;

import java.util.TimeZone;

import com.word.clean.annotation.EnableSecurity;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import java.util.TimeZone;

/**
 * springBoot 默认启动标签
 */
@SpringBootApplication
@EnableTransactionManagement
@MapperScan(basePackages = "com.word.clean.mapper")
@ServletComponentScan
@EnableWebMvc
@EnableScheduling//开启定时任务
@EnableAsync//开启线程池
@EnableSecurity//是否开启加密服务
public class DavidApplication {
    /**
     * 启动方法
     * 启动Spring MVC
     * 启动Spring Swagger2
     *
     * @param args
     */
    public static void main(String[] args) {
        TimeZone.setDefault(TimeZone.getTimeZone("GMT+8"));
        SpringApplication.run(ILoveMoneyApplication.class, args);
    }

}